package com.lingxu.module.database.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang.StringUtils;

@TableName(value = "T_MODEL")
public class Model {
    @TableId
    private String id;
    private String name;
    private String topCategory;//模型一级类别 关联模型分类表的ID
    private String topCategoryName;
    private String secondCategory;//模型二级类别 关联模型分类表的ID
    private String secondCategoryName;
    private String category;//模型类别 格式：一级类别-二级类别
    private String creator;
    private String creatorName;
    private String createTime;
    private String remark;
    private String status;
    private String flags;
    private String content;
    private int browseTimes;
    private String runPlan;
    private String custom;
    private String cloneId;
    private String applyTime; //模型集市发布申请时间
    private String applyReason; //模型集市发布申请事由
    private String approveState; //模型集市审批状态 0审批中 1审批通过 2审批不通过
    private String isShareData; //模型集市是否分享数据 0不分享 1分享
    private String approveTime; //模型集市审批时间
    private String approveOpinion; //模型集市审批意见
    private String approveuser;
    private String approveuserid;

    private String mastermodelname;
    private String mastermodelid;
    private String mastermodelremark;
    private String linkmodelid;

    private String region;



    //模型类型 01-快速建模 02-战法模型。我的模型页面-查询我关注的用到，用来区分模型类型
    private String type;

    public String getCategory() {
        if (StringUtils.isNotBlank(secondCategoryName)) {
            this.category = this.topCategoryName + "-" + this.secondCategoryName;
        } else {
            this.category = this.topCategoryName;
        }
        return this.category;
    }

    public String getTopCategoryName() {
        return topCategoryName;
    }

    public String getSecondCategoryName() {
        return secondCategoryName;
    }

    public void setTopCategoryName(String topCategoryName) {
        this.topCategoryName = topCategoryName;
    }

    public void setSecondCategoryName(String secondCategoryName) {
        this.secondCategoryName = secondCategoryName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTopCategory() {
        return topCategory;
    }

    public void setTopCategory(String topCategory) {
        this.topCategory = topCategory;
    }

    public String getSecondCategory() {
        return secondCategory;
    }

    public void setSecondCategory(String secondCategory) {
        this.secondCategory = secondCategory;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getBrowseTimes() {
        return browseTimes;
    }

    public void setBrowseTimes(int browseTimes) {
        this.browseTimes = browseTimes;
    }

    public String getRunPlan() {
        return runPlan;
    }

    public void setRunPlan(String runPlan) {
        this.runPlan = runPlan;
    }

    public String getCustom() {
        return custom;
    }

    public void setCustom(String custom) {
        this.custom = custom;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCloneId() {
        return cloneId;
    }

    public void setCloneId(String cloneId) {
        this.cloneId = cloneId;
    }


    public String getFlags() {
        return flags;
    }

    public void setFlags(String flags) {
        this.flags = flags;
    }

	public String getApplyTime() {
		return applyTime;
	}

	public void setApplyTime(String applyTime) {
		this.applyTime = applyTime;
	}

	public String getApplyReason() {
		return applyReason;
	}

	public void setApplyReason(String applyReason) {
		this.applyReason = applyReason;
	}

	public String getApproveState() {
		return approveState;
	}

	public void setApproveState(String approveState) {
		this.approveState = approveState;
	}

	public String getIsShareData() {
		return isShareData;
	}

	public void setIsShareData(String isShareData) {
		this.isShareData = isShareData;
	}

	public String getApproveTime() {
		return approveTime;
	}

	public void setApproveTime(String approveTime) {
		this.approveTime = approveTime;
	}

	public String getApproveOpinion() {
		return approveOpinion;
	}

	public void setApproveOpinion(String approveOpinion) {
		this.approveOpinion = approveOpinion;
	}


    public String getApproveuser() {
        return approveuser;
    }

    public String getApproveuserid() {
        return approveuserid;
    }

    public void setApproveuser(String approveuser) {
        this.approveuser = approveuser;
    }

    public void setApproveuserid(String approveuserid) {
        this.approveuserid = approveuserid;
    }

    public void setCategory(String category) {
        this.category = category;
    }


    public String getMastermodelname() {
        return mastermodelname;
    }

    public void setMastermodelname(String mastermodelname) {
        this.mastermodelname = mastermodelname;
    }

    public String getMastermodelid() {
        return mastermodelid;
    }

    public void setMastermodelid(String mastermodelid) {
        this.mastermodelid = mastermodelid;
    }

    public String getMastermodelremark() {
        return mastermodelremark;
    }

    public void setMastermodelremark(String mastermodelremark) {
        this.mastermodelremark = mastermodelremark;
    }

    public String getLinkmodelid() {
        return linkmodelid;
    }

    public void setLinkmodelid(String linkmodelid) {
        this.linkmodelid = linkmodelid;
    }


    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }
}
